package com.ntschy.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author ezreal_geng
 */
@Component
@ConfigurationProperties(prefix = "project")
public class ProjectConfig {
    /**
     * 项目名称
     */
    private String name;

    /**
     * 版本
     */
    private String version;

    /**
     * 版权年份
     */
    private String copyrightYear;

    /**
     * 静态资源映射路径
     */
    private static String profile;

    /**
     * 文件上传路径
     */
    private static String upload;

    /**
     * excel模板下载路径
     */
    private static String excelDownload;

    /**
     * 头像路径
     */
    private static String avatar;

    /**
     * 静态资源映射前缀
     */
    private static String profilePrefix;

    /**
     * 上传文件静态资源映射前缀
     */
    private static String uploadPrefix;




    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCopyrightYear() {
        return copyrightYear;
    }

    public void setCopyrightYear(String copyrightYear) {
        this.copyrightYear = copyrightYear;
    }

    public static String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        ProjectConfig.profile = profile;
    }

    public static String getUpload() {
        return upload;
    }

    public void setUpload(String upload) {
        ProjectConfig.upload = upload;
    }

    public static String getExcelDownload() {
        return excelDownload;
    }

    public void setExcelDownload(String excelDownload) {
        ProjectConfig.excelDownload = excelDownload;
    }

    public static String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        ProjectConfig.avatar = avatar;
    }

    public static String getProfilePrefix() {
        return profilePrefix;
    }

    public void setProfilePrefix(String profilePrefix) {
        ProjectConfig.profilePrefix = profilePrefix;
    }

    public static String getUploadPrefix() {
        return uploadPrefix;
    }

    public void setUploadPrefix(String uploadPrefix) {
        ProjectConfig.uploadPrefix = uploadPrefix;
    }
}
